const Layout = () => import('@/layout/index.vue')

export default {
  name: 'user',
  path: '/user',
  component: Layout,
  redirect: '/user/index',
  meta: {
    order: 2,
    role: ['userInfo'],
    requireAuth: true,
  },
  children: [
    {
      name: 'userIndex',
      path: 'index',
      component: () => import('./index.vue'),
      meta: {
        title: '人员信息',
        icon: 'solar:user-id-broken',
      },
    },
    {
      name: 'userDetail',
      path: 'detail',
      component: () => import('./detail.vue'),
      meta: {
        activeMenu: 'userIndex',
        title: '人员详情',
      },
      isHidden: true,
    },
  ],
}
